var db = require('./base');

function checkDB()
{
	if(db.connected())
	{
		db.query('account','11',log_result);
	}
	else
	{
		console.log('db fail!');
		setTimeout(checkDB,500);
	}
}

function log_result(result)
{
	console.log('result',result);
}


checkDB();